package com.gushi.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class gsDateTime {

    public static Calendar now () {
        return Calendar.getInstance();
    }

    public static String nowToViewString () {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return simpleDateFormat.format(new Date());
    }

    public static String nowToPathString () {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss");
        return simpleDateFormat.format(new Date());
    }
}
